﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using static WindowsFormsApp3.Class1;

namespace WindowsFormsApp3
{
    public class Class2
    {
        [DllImport("setupapi.dll", SetLastError = true)] 
        private static extern IntPtr SetupDiGetClassDevs(ref Guid ClassGuid, uint Enumerator, IntPtr HwndParent, DIGCF Flags);



        [DllImport("setupapi.dll", SetLastError = true)] 
        private static extern bool SetupDiEnumDeviceInfo(IntPtr DeviceInfoSet, uint MemberIndex, SP_DEVINFO_DATA DeviceInfoData);
    }
}
